package com.cms.service;

import com.cms.entity.Client;
import com.cms.exception.DuplicateKeyException;

import java.util.HashMap;
import java.util.List;

public interface ClientService {

    List<Client> findAll();

    int insertClient (Client client) throws DuplicateKeyException;

    int updateClient (HashMap<String,String> updateMap) throws DuplicateKeyException;

    int deleteClient (String id);

    List<Client> findClientById (String id);

    List<Client> findClientByName (String name);

    List<Client> findClientByTelephone (String telephone);

    List<Client> findClientByEmail (String email);

    List<Client> findClientByType (String type);
}
